package com.grts.mall.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grts.mall.mapper.ImageMapper;
import com.grts.mall.pojo.Image;
import com.grts.mall.pojo.ImageExample;

@Service
public class ImageServiceImpl implements ImageService{

	@Autowired
	private ImageMapper imageMapper;

	@Override
	public List<Image> findByImages(Long pid) {
		ImageExample example = new ImageExample();
		example.createCriteria().andPidEqualTo(pid);
		List<Image> images = this.imageMapper.selectByExample(example);
		return images;
	}
	
	
}
